package genericdemo;

import java.util.ArrayList;
import java.util.List;

class Person{

}

class Student2 extends Person{

}

public class TestDemo3 {
    List<Person> list1 = new ArrayList<>();
    List<Student> list2 = new ArrayList<>();

    //list1 = list2;
}
